<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加视频列表</title>
	<Pintuer />
</head>
<body>
	<div class="container-layout">
	<div class="bg border margin-top margin-little-bottom padding-left padding-top padding-bottom">
		<button type="button" onClick="location.href='{|U:'show',array('cid'=> $hd['get']['cid'])}'" class="button bg">
			<i class="icon-th-list"></i>
			视频列表
		</button>
		<button type="button" onClick="location.href='{|U:'add',array('cid'=> $hd['get']['cid'])}'" class="button">
			<i class="icon-edit"></i>
			添加视频
		</button>
		<button type="button" onClick="location.href='{|U:'show',array('cid'=> $hd['get']['cid'],'content_status'=> 0)}'" class="button">
			<i class="icon-eraser"></i>
			未 审 核
		</button>
	</div>
</div>
<div class="container-layout">
	<table class="table table-bordered table-hover table-condensed table-responsive">
		<tr class="bg">
			<td><label><input type="checkbox"></label></td>
			<td>aid</td>
			<td>排序</td>
			<td>标题</td>
			<td>所属频道</td>
			<td>状态</td>
			<td>发布者</td>
			<td>发布时间</td>
			<td>操 作</td>
		</tr>
		<list from="$field" name="$vo">
			<tr>
				<td><label><input type="checkbox" name="aid" value="{$vo.aid}"/></label></td>
				<td>{$vo.aid}</td>
				<td>{$vo.arc_sort}</td>
				<td>{$vo.title}</td>
				<td>{$vo._cate}</td>
				<td>
					<if value="$vo.content_status eq 1">
						已审核
					<elseif value="$vo.content_status eq 2" />
						草稿
						<else />
						<div style="color:red;">未审核</div>
					</if>
				</td>
				<td>{$vo._author}</td>
				<td>{$vo.addtime|date:'Y-m-d H:i:s',@@}</td>
				<td width="350">
					<if value="$vo.content_status eq 1">
						<a href="" target="_blank">
							<span class="icon-toggle-right (alias)"></span>
							访问播放
						</a> |
					</if>
					<if value="$vo.content_status eq 0">
						<a href="{|U:'audit',array('aid'=> $vo['aid'], 'status'=> 1)}">
							<span class="icon-check-circle-o"></span>
							点击审核
						</a> |
						<elseif value="$vo.content_status eq 1"/>
						<a href="{|U:'audit',array('aid'=> $vo['aid'], 'status'=> 0)}">
							<i class="icon-times"></i>
							取消审核
						</a> |
					</if>
					<a href="{|U:'edit',array('cid'=> $hd['get']['cid'], 'aid'=> $vo['aid'])}">
						<i class="icon-edit"></i>
						修 改
					</a> |	
					<a href="javascript:;" class="dialogs" data-toggle="click" data-target="#mydialog{$vo.aid}" data-mask="1" data-width="20%" <if value="$vo.system eq 1">disabled="disabled"</if>>
						<i class="icon-trash-o"></i>
						删 除
					</a>
					<!-- 删除确认框 Start -->
					<div id="mydialog{$vo.aid}">
						<div class="dialog bouncein">
							<div class="dialog-head">
								<span class="close icon-times"></span>
								<strong>删除确认对话框</strong>
							</div>
							<div class="dialog-body">
								是否确认删除该视频数据？
							</div>
							<div class="dialog-foot">
								<button class="button bg-sub radius-none" onClick="location.href='{|U:'del',array('aid'=> $vo['aid'])}'">
									<i class="icon-check-square-o"></i>
									确 认
								</button>
								<button class="button dialog-close radius-none">
									<i class="icon-times"></i>
									取 消
								</button>
							</div>
						</div>
					</div>
					<!-- 删除确认框 End -->
				</td>
			</tr>
		</list>
		<tr>
			<td colspan="9">
				<div class="line">
					<div class="x9">
						<button type="button" class="button bg">
							<span class="icon-arrows"></span>
							全 选
						</button>
						<if value="$vo.content_status eq 0">
							<button type="button" class="button bg">
								<span class="icon-check-circle"></span>
								批量审核
							</button>
							<else />
							<button type="button" class="button bg">
								<span class="icon-ban"></span>
								批量取消审核
							</button>
						</if>
						<button type="button" class="button bg">
							<span class="icon-list-ul"></span>
							更改排序
						</button>
						<button type="button" class="button bg">
							<span class="icon-reply"></span>
							批量删除
						</button>
					</div>
					<div class="x3">{$page}</div>
				</div>
			</td>
		</tr>
	</table>
</div>
</body>
</html>